package com.example.qxfw.common.mapper;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.qxfw.common.entity.qx.TownshipStation;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/************************************
*
* @author : HuangDeYin Jolly
* @since : JDK 11
* @Date : 2023/7/7  星期五   9:42
* @description : 此类用来
***************************************/
@Mapper
@DS("master")
public interface TownshipStationMapperXml extends BaseMapper<TownshipStation> {
    /**
     * insert record to table
     * @param record the record
     * @return insert count
     */
    int insert(TownshipStation record);

    /**
     * insert record to table selective
     * @param record the record
     * @return insert count
     */
    int insertSelective(TownshipStation record);

    List<TownshipStation> getDistinctByCity(@Param("city") String city);

    List<TownshipStation> getByCity(@Param("city") String city, @Param("jd") Double jd, @Param("wd") Double wd);

    List<TownshipStation> selectDistinctStationNameLongitude();


}